package com.baige.service.user;

import com.baige.common.utils.GeneratorUtils;

/**
 * 代码生成器
 * @author wulg
 * @date 2018/12/11.
 */
public class Generator
{

    private static final String DB_USER_NAME="root";
    private static final String DB_PASSWORD="";
    private static final String DB_URL="jdbc:mysql://192.168.0.200:3306/baige";
    private static final String TABLE_NAME="user_like";
    private static final String PARENT_NAME="com.baige.service.user";
    private static final String ENTITY_OUT_FILE="C:\\Users\\admin\\Downloads\\baige-rent-bag\\baige-service-user\\src\\main\\java\\com\\baige\\service\\user\\entity/";
    private static final String MAPPER_OUT_FILE="C:\\Users\\admin\\Downloads\\baige-rent-bag\\baige-service-user\\src\\main\\java\\com\\baige\\service\\user\\dao/";
    private static final String MAPPER_XML_OUT_FILE="C:\\Users\\admin\\Downloads\\baige-rent-bag\\baige-service-user\\src\\main\\java\\com\\baige\\service\\user\\dao\\mapper/";
    private static final String SERVICE_OUT_FILE="C:\\Users\\admin\\Downloads\\baige-rent-bag\\baige-service-user\\src\\main\\java\\com\\baige\\service\\user\\service/";
    private static final String SERVICE_IMPL_OUT_FILE="C:\\Users\\admin\\Downloads\\baige-rent-bag\\baige-service-user\\src\\main\\java\\com\\baige\\service\\user\\service/impl/";

    public static void main(String[] args)
    {
        GeneratorUtils.generator(DB_USER_NAME,DB_PASSWORD,DB_URL,TABLE_NAME,PARENT_NAME,ENTITY_OUT_FILE,MAPPER_OUT_FILE,MAPPER_XML_OUT_FILE,SERVICE_OUT_FILE,SERVICE_IMPL_OUT_FILE);
    }
}
